package com.bsierp.business.pojo;

/**
 * EmployeeHistoryId entity. @author MyEclipse Persistence Tools
 */

public class EmployeeHistoryId implements java.io.Serializable {

    // Fields

    private Integer employeehistoryId;
    private Integer employeeId;
    private String employeeName;
    private Integer employeeGender;
    private String employeeBirthday;
    private Integer employeeAge;
    private Integer employeeMerriage;
    private NativePlace nativePlace;
    private String employeePhone;
    private String employeeAddress;
    private String employeePhoto;
    private Integer employeeNumber;
    private Bank bank;
    private String employeeBankaccount;
    private Integer educationId;
    private String employeeHiredate;
    private HireType hireType;
    private Department department;
    private Position position;
    private Profession profession;
    private EmployeeState employeeState;
    private String employeePassword;
    private User user;
    private String employeeIdcard;

    // Constructors

    /** default constructor */
    public EmployeeHistoryId() {
    }

    /** minimal constructor */
    public EmployeeHistoryId(Integer employeehistoryId, Integer employeeId,
            String employeeName, Integer employeeGender,
            String employeeBirthday, Integer employeeAge,
            Integer employeeMerriage, NativePlace nativePlace,
            String employeePhone, String employeePhoto, Integer employeeNumber,
            Bank bank, String employeeBankaccount, Integer educationId,
            String employeeHiredate, HireType hireType, Department department,
            Position position, Profession profession,
            EmployeeState employeeState, User user) {
        this.employeehistoryId = employeehistoryId;
        this.employeeId = employeeId;
        this.employeeName = employeeName;
        this.employeeGender = employeeGender;
        this.employeeBirthday = employeeBirthday;
        this.employeeAge = employeeAge;
        this.employeeMerriage = employeeMerriage;
        this.nativePlace = nativePlace;
        this.employeePhone = employeePhone;
        this.employeePhoto = employeePhoto;
        this.employeeNumber = employeeNumber;
        this.bank = bank;
        this.employeeBankaccount = employeeBankaccount;
        this.educationId = educationId;
        this.employeeHiredate = employeeHiredate;
        this.hireType = hireType;
        this.department = department;
        this.position = position;
        this.profession = profession;
        this.employeeState = employeeState;
        this.user = user;
    }

    /** full constructor */
    public EmployeeHistoryId(Integer employeehistoryId, Integer employeeId,
            String employeeName, Integer employeeGender,
            String employeeBirthday, Integer employeeAge,
            Integer employeeMerriage, NativePlace nativePlace,
            String employeePhone, String employeeAddress, String employeePhoto,
            Integer employeeNumber, Bank bank, String employeeBankaccount,
            Integer educationId, String employeeHiredate, HireType hireType,
            Department department, Position position, Profession profession,
            EmployeeState employeeState, String employeePassword, User user,
            String employeeIdcard) {
        this.employeehistoryId = employeehistoryId;
        this.employeeId = employeeId;
        this.employeeName = employeeName;
        this.employeeGender = employeeGender;
        this.employeeBirthday = employeeBirthday;
        this.employeeAge = employeeAge;
        this.employeeMerriage = employeeMerriage;
        this.nativePlace = nativePlace;
        this.employeePhone = employeePhone;
        this.employeeAddress = employeeAddress;
        this.employeePhoto = employeePhoto;
        this.employeeNumber = employeeNumber;
        this.bank = bank;
        this.employeeBankaccount = employeeBankaccount;
        this.educationId = educationId;
        this.employeeHiredate = employeeHiredate;
        this.hireType = hireType;
        this.department = department;
        this.position = position;
        this.profession = profession;
        this.employeeState = employeeState;
        this.employeePassword = employeePassword;
        this.user = user;
        this.employeeIdcard = employeeIdcard;
    }

    // Property accessors

    public Integer getEmployeehistoryId() {
        return this.employeehistoryId;
    }

    public void setEmployeehistoryId(Integer employeehistoryId) {
        this.employeehistoryId = employeehistoryId;
    }

    public Integer getEmployeeId() {
        return this.employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return this.employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public Integer getEmployeeGender() {
        return this.employeeGender;
    }

    public void setEmployeeGender(Integer employeeGender) {
        this.employeeGender = employeeGender;
    }

    public String getEmployeeBirthday() {
        return this.employeeBirthday;
    }

    public void setEmployeeBirthday(String employeeBirthday) {
        this.employeeBirthday = employeeBirthday;
    }

    public Integer getEmployeeAge() {
        return this.employeeAge;
    }

    public void setEmployeeAge(Integer employeeAge) {
        this.employeeAge = employeeAge;
    }

    public Integer getEmployeeMerriage() {
        return this.employeeMerriage;
    }

    public void setEmployeeMerriage(Integer employeeMerriage) {
        this.employeeMerriage = employeeMerriage;
    }

    public NativePlace getNativePlace() {
        return this.nativePlace;
    }

    public void setNativePlace(NativePlace nativePlace) {
        this.nativePlace = nativePlace;
    }

    public String getEmployeePhone() {
        return this.employeePhone;
    }

    public void setEmployeePhone(String employeePhone) {
        this.employeePhone = employeePhone;
    }

    public String getEmployeeAddress() {
        return this.employeeAddress;
    }

    public void setEmployeeAddress(String employeeAddress) {
        this.employeeAddress = employeeAddress;
    }

    public String getEmployeePhoto() {
        return this.employeePhoto;
    }

    public void setEmployeePhoto(String employeePhoto) {
        this.employeePhoto = employeePhoto;
    }

    public Integer getEmployeeNumber() {
        return this.employeeNumber;
    }

    public void setEmployeeNumber(Integer employeeNumber) {
        this.employeeNumber = employeeNumber;
    }

    public Bank getBank() {
        return this.bank;
    }

    public void setBank(Bank bank) {
        this.bank = bank;
    }

    public String getEmployeeBankaccount() {
        return this.employeeBankaccount;
    }

    public void setEmployeeBankaccount(String employeeBankaccount) {
        this.employeeBankaccount = employeeBankaccount;
    }

    public Integer getEducationId() {
        return this.educationId;
    }

    public void setEducationId(Integer educationId) {
        this.educationId = educationId;
    }

    public String getEmployeeHiredate() {
        return this.employeeHiredate;
    }

    public void setEmployeeHiredate(String employeeHiredate) {
        this.employeeHiredate = employeeHiredate;
    }

    public HireType getHireType() {
        return this.hireType;
    }

    public void setHireType(HireType hireType) {
        this.hireType = hireType;
    }

    public Department getDepartment() {
        return this.department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Position getPosition() {
        return this.position;
    }

    public void setPosition(Position position) {
        this.position = position;
    }

    public Profession getProfession() {
        return this.profession;
    }

    public void setProfession(Profession profession) {
        this.profession = profession;
    }

    public EmployeeState getEmployeeState() {
        return this.employeeState;
    }

    public void setEmployeeState(EmployeeState employeeState) {
        this.employeeState = employeeState;
    }

    public String getEmployeePassword() {
        return this.employeePassword;
    }

    public void setEmployeePassword(String employeePassword) {
        this.employeePassword = employeePassword;
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getEmployeeIdcard() {
        return this.employeeIdcard;
    }

    public void setEmployeeIdcard(String employeeIdcard) {
        this.employeeIdcard = employeeIdcard;
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof EmployeeHistoryId))
            return false;
        EmployeeHistoryId castOther = (EmployeeHistoryId) other;

        return ((this.getEmployeehistoryId() == castOther
                .getEmployeehistoryId()) || (this.getEmployeehistoryId() != null
                && castOther.getEmployeehistoryId() != null && this
                .getEmployeehistoryId()
                .equals(castOther.getEmployeehistoryId())))
                && ((this.getEmployeeId() == castOther.getEmployeeId()) || (this
                        .getEmployeeId() != null
                        && castOther.getEmployeeId() != null && this
                        .getEmployeeId().equals(castOther.getEmployeeId())))
                && ((this.getEmployeeName() == castOther.getEmployeeName()) || (this
                        .getEmployeeName() != null
                        && castOther.getEmployeeName() != null && this
                        .getEmployeeName().equals(castOther.getEmployeeName())))
                && ((this.getEmployeeGender() == castOther.getEmployeeGender()) || (this
                        .getEmployeeGender() != null
                        && castOther.getEmployeeGender() != null && this
                        .getEmployeeGender().equals(
                                castOther.getEmployeeGender())))
                && ((this.getEmployeeBirthday() == castOther
                        .getEmployeeBirthday()) || (this.getEmployeeBirthday() != null
                        && castOther.getEmployeeBirthday() != null && this
                        .getEmployeeBirthday().equals(
                                castOther.getEmployeeBirthday())))
                && ((this.getEmployeeAge() == castOther.getEmployeeAge()) || (this
                        .getEmployeeAge() != null
                        && castOther.getEmployeeAge() != null && this
                        .getEmployeeAge().equals(castOther.getEmployeeAge())))
                && ((this.getEmployeeMerriage() == castOther
                        .getEmployeeMerriage()) || (this.getEmployeeMerriage() != null
                        && castOther.getEmployeeMerriage() != null && this
                        .getEmployeeMerriage().equals(
                                castOther.getEmployeeMerriage())))
                && ((this.getNativePlace() == castOther.getNativePlace()) || (this
                        .getNativePlace() != null
                        && castOther.getNativePlace() != null && this
                        .getNativePlace().equals(castOther.getNativePlace())))
                && ((this.getEmployeePhone() == castOther.getEmployeePhone()) || (this
                        .getEmployeePhone() != null
                        && castOther.getEmployeePhone() != null && this
                        .getEmployeePhone()
                        .equals(castOther.getEmployeePhone())))
                && ((this.getEmployeeAddress() == castOther
                        .getEmployeeAddress()) || (this.getEmployeeAddress() != null
                        && castOther.getEmployeeAddress() != null && this
                        .getEmployeeAddress().equals(
                                castOther.getEmployeeAddress())))
                && ((this.getEmployeePhoto() == castOther.getEmployeePhoto()) || (this
                        .getEmployeePhoto() != null
                        && castOther.getEmployeePhoto() != null && this
                        .getEmployeePhoto()
                        .equals(castOther.getEmployeePhoto())))
                && ((this.getEmployeeNumber() == castOther.getEmployeeNumber()) || (this
                        .getEmployeeNumber() != null
                        && castOther.getEmployeeNumber() != null && this
                        .getEmployeeNumber().equals(
                                castOther.getEmployeeNumber())))
                && ((this.getBank() == castOther.getBank()) || (this.getBank() != null
                        && castOther.getBank() != null && this.getBank()
                        .equals(castOther.getBank())))
                && ((this.getEmployeeBankaccount() == castOther
                        .getEmployeeBankaccount()) || (this
                        .getEmployeeBankaccount() != null
                        && castOther.getEmployeeBankaccount() != null && this
                        .getEmployeeBankaccount().equals(
                                castOther.getEmployeeBankaccount())))
                && ((this.getEducationId() == castOther.getEducationId()) || (this
                        .getEducationId() != null
                        && castOther.getEducationId() != null && this
                        .getEducationId().equals(castOther.getEducationId())))
                && ((this.getEmployeeHiredate() == castOther
                        .getEmployeeHiredate()) || (this.getEmployeeHiredate() != null
                        && castOther.getEmployeeHiredate() != null && this
                        .getEmployeeHiredate().equals(
                                castOther.getEmployeeHiredate())))
                && ((this.getHireType() == castOther.getHireType()) || (this
                        .getHireType() != null
                        && castOther.getHireType() != null && this
                        .getHireType().equals(castOther.getHireType())))
                && ((this.getDepartment() == castOther.getDepartment()) || (this
                        .getDepartment() != null
                        && castOther.getDepartment() != null && this
                        .getDepartment().equals(castOther.getDepartment())))
                && ((this.getPosition() == castOther.getPosition()) || (this
                        .getPosition() != null
                        && castOther.getPosition() != null && this
                        .getPosition().equals(castOther.getPosition())))
                && ((this.getProfession() == castOther.getProfession()) || (this
                        .getProfession() != null
                        && castOther.getProfession() != null && this
                        .getProfession().equals(castOther.getProfession())))
                && ((this.getEmployeeState() == castOther.getEmployeeState()) || (this
                        .getEmployeeState() != null
                        && castOther.getEmployeeState() != null && this
                        .getEmployeeState()
                        .equals(castOther.getEmployeeState())))
                && ((this.getEmployeePassword() == castOther
                        .getEmployeePassword()) || (this.getEmployeePassword() != null
                        && castOther.getEmployeePassword() != null && this
                        .getEmployeePassword().equals(
                                castOther.getEmployeePassword())))
                && ((this.getUser() == castOther.getUser()) || (this.getUser() != null
                        && castOther.getUser() != null && this.getUser()
                        .equals(castOther.getUser())))
                && ((this.getEmployeeIdcard() == castOther.getEmployeeIdcard()) || (this
                        .getEmployeeIdcard() != null
                        && castOther.getEmployeeIdcard() != null && this
                        .getEmployeeIdcard().equals(
                                castOther.getEmployeeIdcard())));
    }

    public int hashCode() {
        int result = 17;

        result = 37
                * result
                + (getEmployeehistoryId() == null ? 0 : this
                        .getEmployeehistoryId().hashCode());
        result = 37
                * result
                + (getEmployeeId() == null ? 0 : this.getEmployeeId()
                        .hashCode());
        result = 37
                * result
                + (getEmployeeName() == null ? 0 : this.getEmployeeName()
                        .hashCode());
        result = 37
                * result
                + (getEmployeeGender() == null ? 0 : this.getEmployeeGender()
                        .hashCode());
        result = 37
                * result
                + (getEmployeeBirthday() == null ? 0 : this
                        .getEmployeeBirthday().hashCode());
        result = 37
                * result
                + (getEmployeeAge() == null ? 0 : this.getEmployeeAge()
                        .hashCode());
        result = 37
                * result
                + (getEmployeeMerriage() == null ? 0 : this
                        .getEmployeeMerriage().hashCode());
        result = 37
                * result
                + (getNativePlace() == null ? 0 : this.getNativePlace()
                        .hashCode());
        result = 37
                * result
                + (getEmployeePhone() == null ? 0 : this.getEmployeePhone()
                        .hashCode());
        result = 37
                * result
                + (getEmployeeAddress() == null ? 0 : this.getEmployeeAddress()
                        .hashCode());
        result = 37
                * result
                + (getEmployeePhoto() == null ? 0 : this.getEmployeePhoto()
                        .hashCode());
        result = 37
                * result
                + (getEmployeeNumber() == null ? 0 : this.getEmployeeNumber()
                        .hashCode());
        result = 37 * result
                + (getBank() == null ? 0 : this.getBank().hashCode());
        result = 37
                * result
                + (getEmployeeBankaccount() == null ? 0 : this
                        .getEmployeeBankaccount().hashCode());
        result = 37
                * result
                + (getEducationId() == null ? 0 : this.getEducationId()
                        .hashCode());
        result = 37
                * result
                + (getEmployeeHiredate() == null ? 0 : this
                        .getEmployeeHiredate().hashCode());
        result = 37 * result
                + (getHireType() == null ? 0 : this.getHireType().hashCode());
        result = 37
                * result
                + (getDepartment() == null ? 0 : this.getDepartment()
                        .hashCode());
        result = 37 * result
                + (getPosition() == null ? 0 : this.getPosition().hashCode());
        result = 37
                * result
                + (getProfession() == null ? 0 : this.getProfession()
                        .hashCode());
        result = 37
                * result
                + (getEmployeeState() == null ? 0 : this.getEmployeeState()
                        .hashCode());
        result = 37
                * result
                + (getEmployeePassword() == null ? 0 : this
                        .getEmployeePassword().hashCode());
        result = 37 * result
                + (getUser() == null ? 0 : this.getUser().hashCode());
        result = 37
                * result
                + (getEmployeeIdcard() == null ? 0 : this.getEmployeeIdcard()
                        .hashCode());
        return result;
    }

}